<%@page import="com.shoeshopping.entity.Goods"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String username = null;
username = (String)request.getParameter("username");
%>
	<div class="top-header">
					<div class="wrap">
						<div class="top-header-left">
							<ul>
								<!---cart-tonggle-script---->
								<script type="text/javascript">
									$(function(){
									    var $cart = $('#cart');
									        $('#clickme').click(function(e) {
									         e.stopPropagation();
									       if ($cart.is(":hidden")) {
									           $cart.slideDown("slow");
									       } else {
									           $cart.slideUp("slow");
									       }
									    });
									    $(document.body).click(function () {
									       if ($cart.not(":hidden")) {
									           $cart.slideUp("slow");
									       } 
									    });
									    });
								</script>
								<!---//cart-tonggle-script---->
								<li><a class="cart" href="user/cart_showCart"><span id="clickme"> </span></a></li>
							</ul>
						</div>
						<div class="top-header-right">
						<%
							if(username==null||username.equals("null")){
						 %>
						 <ul>
								<li><a href="">login</a><span> </span></li>
								<li><a href="register.jsp">register</a></li>
							</ul> 
						 <%
							 }else{
						  %>
							<ul>
								<li><a href="user_foreground/user_toModify"><%=username %></a><span> </span></li>
								<li><a href="user_foreground/user_exit">exit</a></li>
							</ul>
							<%} %>
						</div>
						<div class="clear"> </div>
					</div>
				</div>